import i18n from '@src/locales';
import FormServiceProviderSetting from './FormServiceProviderSetting.vue';
import FormServiceProviderPreview from './FormServiceProviderPreview.vue';
import FormServiceProvider from './FormServiceProvider.vue';
import FormServiceProviderView from './FormServiceProviderView.vue';


let FormServiceProviderField = {
  formType: 'serviceProviders', // 字段类型
  fieldName: 'serviceProviders',
  name: i18n.t('common.form.type.serviceProviders'),
  isSystem: 1,
  forceDelete: true,
  previewIcon:'icon-service-provider_line',
  subFormFieldList: () => {
    return []
  },
  isSubForm: true,
  component: {
    preview: FormServiceProviderPreview,
    build: FormServiceProvider,
    view: FormServiceProviderView,
    extend: {
      'task_serviceProviders_setting': FormServiceProviderSetting,
      'product_serviceProviders_setting': FormServiceProviderSetting
    }
  }
};

export default FormServiceProviderField;
